﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sausage.Common
{
    /// <summary>
    /// 格式化器
    /// </summary>
    /// <remarks></remarks>
    /// <history>
    /// [zanezeng]               2012/03/01 12:03    创建
    /// </history>
    public static class ProjectStateEnumFormatter
    {
        /// <summary>
        /// 格式化枚举值。
        /// </summary>
        /// <param name="value">要格式化的值。</param>
        /// <returns>
        /// 格式化结果。
        /// </returns>
        /// <history>
        /// [zanezeng]               2012/03/01 12:04    创建
        ///   </history>
        public static string Format(ProjectStateEnum value)
        {
            switch (value)
            {
                case ProjectStateEnum.Audited:
                    return "已批准";
                case ProjectStateEnum.AuditRejected:
                    return "重提交";
                case ProjectStateEnum.Closed:
                    return "已关闭";
                case ProjectStateEnum.Submitted:
                    return "待批准";
                case ProjectStateEnum.Unsubmit:
                    return "待提交";
                default:
                    return "未知";
            }
        }
    }
}
